/**
 * Created by mauricio on 9/18/14.
 */
public class FizzBuzz {

    public static void fizzBuzz(int limit) {
        String result;
        for(int num = 1; num <= limit; num++) {

            result = "";

            if(num % 3 == 0)            result += "Fizz";
            else if(num % 5 == 0)       result += "Buzz";
            else if(result.isEmpty())   result = Integer.toString(num);

            System.out.println(result);
        }
    }

    public static void main(String[] args) {

        fizzBuzz(100);

    }
}
